package com.example.mystoryapp2.domain

class Story {
    constructor(){

    }

    private var storyId: Int? = null

    private var authorId: Int? = null

    private var title: String? = null

    private var description: String? = null

    private var categoryId: Int? = null

    private var storyPicture: String? = null

    private var isPublished: Boolean? = null

    fun getStoryId(): Int? {
        return storyId
    }

    fun setStoryId(storyId: Int?) {
        this.storyId = storyId
    }

    fun getAuthorId(): Int? {
        return authorId
    }

    fun setAuthorId(authorId: Int?) {
        this.authorId = authorId
    }

    fun getTitle(): String? {
        return title
    }

    fun setTitle(title: String?) {
        this.title = title
    }

    fun getDescription(): String? {
        return description
    }

    fun setDescription(description: String?) {
        this.description = description
    }

    fun getCategoryId(): Int? {
        return categoryId
    }

    fun setCategoryId(categoryId: Int?) {
        this.categoryId = categoryId
    }

    fun getStoryPicture(): String? {
        return storyPicture
    }

    fun setStoryPicture(storyPicture: String?) {
        this.storyPicture = storyPicture
    }

    fun getIsPublished(): Boolean? {
        return isPublished
    }

    fun setIsPublished(isPublished: Boolean?) {
        this.isPublished = isPublished
    }

    override fun toString(): String {
        return "Story{" +
                "storyId = " + storyId +
                ", authorId = " + authorId +
                ", title = " + title +
                ", description = " + description +
                ", categoryId = " + categoryId +
                ", storyPicture = " + storyPicture +
                ", isPublished = " + isPublished +
                "}"
    }
}